linq get item

105

linq get item -

string search = "lookforme";
 List<string> myList = new List<string>();
 string result = myList.Single(s => s == search);

Comments

Submit
0 Comments